package com.housediyadmin.command.newsCommand
{
	import com.housediyadmin.events.newsEvents.AddNewsEvent;
	import com.housediyadmin.service.NewsRemoteObjectService;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/16
	 */	
	public class AddNewsCommand extends Command
	{
		[Inject]
		public var service:NewsRemoteObjectService;
		
		[Inject]
		public var event:AddNewsEvent;
		
		override public function execute():void
		{
			service.addOneNews(event.news, event.goodsIds);
		}
	}
}